<section class="content">
    <div class="left-content">
        <span class="main-text">Admin area</span>
        <span class="title-text">Add Category</span>
        <?php if($isAdmin):?>
        <div class="admin-content">
        <div class="validation">
            <?php echo validation_errors(); ?>
        </div>
            <?php 
                echo form_open('blog/addedCategory');
                echo form_label('Category Name:', 'cat_name', array(
                    'class' => 'form_label'
                ));
                echo form_input(array(
                    'id' => 'cat_name', 
                    'name' => 'cat_name',
                    'class' => 'form_input'
                ));
                echo form_submit(array(
                    'class' => 'learn',
                    'value' => 'Add'
                ));
                echo form_close();
            ?>
        </div>
        
        <?php else: ?>
        <div class="main-text">You are not allowed here.</div>
        <?php endif; ?>
    </div>
    <div class="right-content">
    </div>
</section>
